<script setup>
import { ref } from 'vue';

defineProps({
  introduce: Object,
  background:Boolean,
  icon:Boolean
});

const count = ref(0);
</script>

<template>
  <div class="consultationProject" :style="{ background: background ? 'rgba(224,232,253,0.2700)' : 'rgba(224,232,253,0.2700)' }">
    <div v-if="icon" class="consultationProject-tip">
        <span class="consultationProject-tip-tip">推荐</span>
    </div>
     <!-- <div class="consultationProject-tip">
        <span class="consultationProject-tip-tip">最新</span>
    </div> -->
    <div class="consultationProject-left">
      <div class="consultationProject-left-top">
        {{introduce.titile}}
      </div>
      <div class="consultationProject-left-bot">
        <div class="consultationProject-left-bot-look">
          <img src="../../../assets/images/zixunList-eye.png"/>
          {{introduce.reads}}</div>
        <div class="consultationProject-left-bot-look">{{introduce.updatetime}}</div>
      </div>
    </div>
    <div class="consultationProject-right">
        <img :src="introduce.coverimage"/>
    </div>
  </div>
  <!-- <h1>{{ introduce.title }}</h1> -->
</template>

<style scoped lang="less">
.consultationProject {
    position: relative;
    // width: 384px;
    height: 117px;
  
    border-radius: 8px;
    margin-bottom: 11px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 15px;
    .consultationProject-tip{
        position: absolute;
        top: 0;
        left: 13px;
        width: 42px;
        height: 22px;
        background-image: url("../../../assets/images/homepage-infomation1.png");
        background-size: 100% 100%;
        text-align: center;
        color: #fff;
    }
    .consultationProject-left {
        margin-right: 12px;
        .consultationProject-left-top {
            font-size: 16px;
            font-family: PingFangSC-Semibold, PingFang SC;
            font-weight: 600;
            color: #333333;
            margin-bottom: 14px;
            margin-top:6px;
            width: 216px;
        }
        .consultationProject-left-bot {
            display: flex;
            // justify-content: space-between;
            .consultationProject-left-bot-look {
                display: flex;
                font-size: 12px;
                font-family: PingFangSC-Medium, PingFang SC;
                font-weight: 500;
                color: #999999;
                line-height: 17px;
                margin-right: 31px;
                align-items: center;
                img {
                  width: 14px;
                  height: 10px;
                  margin-right: 6px;
                }
            }
        }

    }
    .consultationProject-right {
        width: 128px;
        height: 89px;
        border-radius: 8px;
        img {
             width: 128px;
            height: 100%;
             border-radius: 8px;
        }
    }
}
</style>
